/*
 * JsonRpcException.h
 *
 *   Created on: 2010-3-24     
 *  Description: 
 *    Copyright: 2010 @ ICT Li Heyuan
 */

#ifndef JSONRPCEXCEPTION_H_
#define JSONRPCEXCEPTION_H_

#include <string>
using std::string;

class JsonRpcException
{
public:
	JsonRpcException(const string &error)
	{
		_error = error;
	}

	virtual ~JsonRpcException()
	{

	}

	string what()
	{
		return _error;
	}

private:

	//异常信息
	string _error;
};

#endif /* JSONRPCEXCEPTION_H_ */
